/*jslint node:true*/
'use strict';
var http = require('http');
var url = require('url');
var util = require('util');

http.createServer(function (request, response) {
    response.writeHead(200, {'Content-Type': 'text/plain; charset=utf-8'});
    var params = url.parse(request.url, true).query;
    response.write('para name:' + params.name);
    response.write('\n');
    response.write('para url:' + params.url);
    response.write('\n');
    response.end(util.inspect(url.parse(request.url, true)));
}).listen(8888);